#!/bin/bash

client=$1
server=$2
hops=$3
seed=$4

n1="10.0.0.$(expr $client + 1)"
n2="10.0.0.$(expr $server + 1)"

echo "Running ScriptQSR"

./waf --run "scratch/gpsr2 --client=$client --server=$server --seed=$seed" &> LOF

grep "QSR PEDIDO $n1 $n2" LOF > QSRPEDIDO$hops
grep "QSR RESPOSTA $n2" LOF > QSRRESPOSTA$hops

